import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Home from '@/components/pages/home'
import Club from '@/components/pages/club'
import SocialMedia from '@/components/pages/socialMedia'
import About from '@/components/pages/about'
import ContactUs from '@/components/pages/contactUs'
import WeChat from '@/components/pages/weChat'
import News from '@/components/pages/news'
import NewsDetail from '@/components/pages/newsDetail'
import Activity from '@/components/pages/activity'
import ActivityDetail from '@/components/pages/detail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/club',
      name: 'Club',
      component: Club
    },
    {
      path: '/socialMedia',
      name: 'SocialMedia',
      component: SocialMedia
    },
    {
      path: '/about',
      name: 'About',
      component: About
    },
    {
      path: '/contactUs',
      name: 'ContactUs',
      component: ContactUs
    },
    {
      path: '/weChat',
      name: 'WeChat',
      component: WeChat
    },
    {
      path: '/news',
      name: 'News',
      component: News
    },
    {
      path: '/news/detail/:id',
      name: 'NewsDetail',
      component: NewsDetail
    },
    {
      path: '/activity',
      name: 'Activity',
      component: Activity
    },
    {
      path: '/activity/detail/:id',
      name: 'ActivityDetail',
      component: ActivityDetail
    }
  ]
})
